#include <iostream>
using namespace std;

// 将十进制转换成任意进制数
// 十到16进制：x / 16 = 结果+余数对应的字符 : 31 / 16 = 1+15 = 1F
int Change(int x, int m) {
    int res = x / m;
    int mo = x % m;
    if (mo >= m)
    {
        
    }
    
}

int main() {
    int x,m;
    cin >> x >> m;
    GetNum(n);
    return 0;
}